<?php
include('../../include/functions.inc.php');
include('../../include/inputbuilder.inc.php');
include('../../include/maintenance.inc.php');

$maintenance = unserialize($_SESSION['mPolicy']);

$intAnio1 = date("Y");
$intAnio2 = intval($intAnio1) + 1;
$intAnio3 = intval($intAnio1) + 2;
?>
<form id="<?php echo $maintenance->formName; ?>" name="<?php echo $maintenance->formName; ?>" method="POST" action="<?php echo $maintenance->saveNewUrlPage; ?>">
    <table class=""  width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th scope="col"><legend>DATOS POLITICA</legend></th>
            <th scope="col">
                <legend><div style="margin-left: 30%;margin-top: 1.4%" class="btn-group">
                    <input type="button" name="cmdOk" id="cmdOk" class="btn btn-info" value="Guardar" onClick="javascript:formOkBt($(this.form),newAction);jQuery('#cmAddcontainer,#cmBack').show();" />
                    <input class="btn btn-info" type="button" name="cmdCancel" id="cmdCancel" value="Cancelar" onClick="loadTable();jQuery('#cmAddcontainer,#cmBack').show();" /> 
                </legend></div>
            </th>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="20%">NOMBRE </td>
                        <td width="80%"><input name="NAME" type="text" id="NAME" /></td>
                    </tr>
                    <tr>
                        <td width="25%">FRECUENCIA</td>
                        <td width="75%">
                            <select name="FRECUENCY" id="FRECUENCY">
                                <option value="1" selected="selected">MENSUAL</option>
                                <option value="2">BIMESTRAL</option>
                                <option value="3">TRIMESTRAL</option>
                                <option value="4">CUATRIMESTRAL</option>
                                <option value="5">QUINQUEMESTRAL</option>
                                <option value="6">SEMESTRAL</option>
                                <option value="12">ANUAL</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>DIA APLICACION</td>
                        <td>
                            <input name="DAY_APPLY" type="text" id="DAY_APPLY" />(1-30)
                        </td>
                    </tr>
                    <tr>
                        <td>MES APLICACION</td>
                        <td>
                            <select name="MONTH_APPLY" id="MONTH_APPLY">
                                <option value="1">Mes 1</option>
                                <option value="2">Mes 2</option>
                                <option value="3">Mes 3</option>
                                <option value="4">Mes 4</option>
                                <option value="5">Mes 5</option>
                                <option value="6">Mes 6</option>
                                <option value="7">Mes 7</option>
                                <option value="8">Mes 8</option>
                                <option value="9">Mes 9</option>
                                <option value="10">Mes 10</option>
                                <option value="11">Mes 11</option>
                                <option value="12">Mes 12</option>
                                <option value="13">Mes 13</option>
                                <option value="14">Mes 14</option>
                                <option value="15">Mes 15</option>
                                <option value="16">Mes 16</option>
                                <option value="17">Mes 17</option>
                                <option value="18">Mes 18</option>
                                <option value="19">Mes 19</option>
                                <option value="20">Mes 20</option>
                                <option value="21">Mes 21</option>
                                <option value="22">Mes 22</option>
                                <option value="23">Mes 23</option>
                                <option value="24">Mes 24</option>
                                <option value="25">Mes 25</option>
                                <option value="26">Mes 26</option>
                                <option value="27">Mes 27</option>
                                <option value="28">Mes 28</option>
                                <option value="29">Mes 29</option>
                                <option value="30">Mes 30</option>
                                <option value="31">Mes 31</option>
                                <option value="32">Mes 32</option>
                                <option value="33">Mes 33</option>
                                <option value="34">Mes 34</option>
                                <option value="35">Mes 35</option>
                                <option value="36">Mes 36</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>NUMERO DE CARGOS</td>
                        <td><input name="COUNT" type="text" id="COUNT" /></td>
                    </tr>
                    <tr>
                        <td>MONTO</td>
                        <td><input name="AMOUNT" type="text" id="AMOUNT" />
                            <input name="CREATED_BY" type="hidden" id="CREATED_BY" value="ES" />
                            <input name="CREATED" type="hidden" id="CREATED" value="<?php echo date(DATE_PATTERN); ?> " /></td>
                    </tr>
                    <tr>
                        <td>MORA</td>
                        <td><input name="PENAL" type="text" id="PENAL" /></td>
                    </tr>
                    <tr>
                        <td>MONEDA</td>
                        <td>
                            <select name="MONEDA" id="MONEDA">
                                <option value="1">QUETZAL</option>
                                <option value="2">DOLAR</option>
                            </select>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
    </table>
</form>